import SessionView from "../views/main/tabs/SessionView.vue";
import ChatView from "../views/main/tabs/ChatView.vue";
import DiscoverView from "../views/main/tabs/DiscoverView.vue";
import ProfileView from "../views/main/tabs/ProfileView.vue";
import SessionMatching from "../views/SessionMatchingView.vue";
const tabRoutes = [
  // {
  //   path: "session/matching",
  //   name: "SessionMatching",
  //   component: SessionMatching,
  //   meta: { title: "随机聊天" },
  // },
  {
    path: "session",
    name: "SessionTab",
    component: SessionView,
    meta: { title: "会话" },
    children: [
      // 将随机聊天作为子路由
      {
        path: "matching", // 完整路径为 /main/session/matching
        name: "ChatMatching",
        component: SessionMatching,
        meta: {
          title: "随机匹配",
          isChildView: true, // 标记为子页面
        },
      },
    ],
  },
  {
    path: "chat",
    name: "ChatTab",
    component: ChatView,
    meta: { title: "聊天" },
  },
  {
    path: "discover",
    name: "DiscoverTab",
    component: DiscoverView,
    meta: { title: "发现" },
  },
  {
    path: "profile",
    name: "ProfileTab",
    component: ProfileView,
    meta: { title: "我的" },
  },
];

export default tabRoutes;
